﻿using CommunityToolkit.Mvvm.ComponentModel;
using EasyLucky.Common;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyLucky.Models
{
    public class LuckyDataM : ObservableObject
    {
        private LuckyItemM curLucky;//当前奖项

        public LuckyItemM CurLucky
        {
            get { return curLucky; }
            set { SetProperty(ref curLucky, value); }
        }

        private ObservableCollection<User> curUsers;//抽奖名单

        public ObservableCollection<User> CurUsers
        {
            get { return curUsers; }
            set { SetProperty(ref curUsers, value); }
        }

        private ObservableCollection<User> users;

        public ObservableCollection<User> Users
        {
            get { return users; }
            set { SetProperty(ref users, value); }
        }

        private ObservableCollection<GiftM> gifts;

        public ObservableCollection<GiftM> Gifts
        {
            get { return gifts; }
            set { SetProperty(ref gifts, value); }
        }

        private ObservableCollection<Lucky> luckys;

        public ObservableCollection<Lucky> Luckys
        {
            get { return luckys; }
            set { SetProperty(ref luckys, value); }
        }

        /// <summary>
        /// 中奖名单
        /// </summary>
        public List<Winner> Winners { get; set; }

        /// <summary>
        /// 未中奖名单列表
        /// </summary>
        public List<User> LostUsers { get; set; }

        private int column;

        public int Column
        {
            get { return column; }
            set { SetProperty(ref column, value); }
        }

        private int row;

        public int Row
        {
            get { return row; }
            set { SetProperty(ref row, value); }
        }

        /// <summary>
        /// 当前状态1：正在运行，0：暂停
        /// </summary>
        public int State { get; set; }

        public LuckyDataM()
        {

        }
    }
}
